#include <iostream>

int main()
{
    int a[3][3] = {{1,2,3}, {4,6,2}, {9,3,6}};
    int s = 0;

    int k = 1;
    for(int i = 0; i < 3; i++)
    {
        for(int j = 0; j < 3; j++)
        {
            a[i][j] = a[i][j] / k;
        k++;
        }
    }
    for(int i = 0; i < 3; i++)
    {
        s += a[i][i];
    }
    printf("%d\n", s);
    return 0;
}